package com.zm.daimai.damaiother.controller;


import com.zm.damai.entity.SecKillOrder;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 大麦商城-订单表-73 前端控制器
 * </p>
 *
 * @author lpt
 * @since 2024-09-08
 */
@RestController
@RequestMapping("/dmOrders")
public class DmOrdersController {

    @RabbitListener(queuesToDeclare = @Queue("secKillQueue"))
    public void saveSecKillOrder(SecKillOrder secKillOrder) {
        System.out.println("==================saveSecKillOrder=================");
        System.out.println("secKillOrder = " + secKillOrder);
    }

}

